// #ifndef VUE3
import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

App.mpType = 'app'
import mjcrequest from '@/config/request.js'
import api from '@/config/apis.js'
import {
	initalToken,
	resetToken,
	updateToken,
	errMessageToast,
	back,
	setTimeoutback,
	removeStorage,
	saveStorage,
	binduserInfo,
	varitfyToken,
	timestampToTime
} from '@/utils/index.js'
Vue.prototype.$eventBus = new Vue()
Vue.prototype.$mjcrequest = mjcrequest;
Vue.prototype.$api = api;
Vue.prototype.$resetToken = resetToken.bind(Vue.prototype);
Vue.prototype.$updateToken = updateToken.bind(Vue.prototype);
Vue.prototype.$back = back.bind(Vue.prototype);
Vue.prototype.$setTimeoutback = setTimeoutback.bind(Vue.prototype);
Vue.prototype.$errMessageToast = errMessageToast.bind(Vue.prototype);
Vue.prototype.$removeStorage = removeStorage.bind(Vue.prototype);
Vue.prototype.$saveStorage = saveStorage.bind(Vue.prototype);
Vue.prototype.$binduserInfo = binduserInfo.bind(Vue.prototype);
Vue.prototype.$varitfyToken = varitfyToken.bind(Vue.prototype);
Vue.prototype.$timestampToTime = timestampToTime.bind(Vue.prototype);

Vue.use(initalToken) //初始化token值




const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import App from './App.vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
